package com.example.demo.person.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.demo.common.request.SSPPageRequest;
import com.example.demo.person.dto.PersonDTO;
import com.example.demo.person.pojo.Person;
import com.example.demo.person.vo.PersonVO;
import com.example.demo.person.dto.AdvanceQueryPersonDTO;
import com.github.pagehelper.PageInfo;

import java.util.List;
import java.util.Set;

public interface IPersonService extends IService<Person> {

    void savePerson(PersonDTO personDTO);

    void updatePerson(PersonDTO personDTO);

    PageInfo<PersonVO> listByAdvanceQuery(SSPPageRequest<AdvanceQueryPersonDTO> queryParam);

    List<Person> tempQuery();

    void setPersonScore(Long pId, Long score);

    Set<String> getPersonRanking();

    void remPersonScore(Long pId);

    void like(Long articleId);

    Long getLikedCount(Long articleId);

    void cancelLike(Long articleId);
}
